package com.itheima.xx.dao;

import com.itheima.xx.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 *
 * @author codermao
 * @date 2023/10/25 10:36
 */
public interface UserMapper {
    /**
     * if标签
     * @param userName
     * @return
     */
    List<User> queryUsersBySexOrUserName(@Param("userName") String userName);


    /**
     * choose when otherwise
     *
     */
    List<User> queryUsersBySexOrUserNameOrAddr(@Param("userName") String userName,@Param("address") String address);

    List<User> queryUsersByUserNameAndAddress(@Param("userName") String userName,@Param("address") String address);

    void updateUserById(User user);

    List<User> queryUsersByIds(@Param("listIds") List<Integer> listIds);
}
